package com.dao;

import java.io.Serializable;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class DefaultDao implements Serializable{
	private EntityManagerFactory emf; 

	public EntityManager getEntityManager(){

		return emf.createEntityManager();
	}
	
	public DefaultDao() {
		emf = Persistence.createEntityManagerFactory("tecfilm-pu");
	}
}
